<?php
/**
 * 队列，更新门店信息
 */

use Biz\service\brand\BrandShop;

class setCacheForShopAction extends QueueActionPlugin
{
    public function main()
    {
        $brandId = $this->getRequest()->getPost("brand_id");
        if ($brandId) {
            BrandShop::setCacheByBrandId($brandId);
            $this->setSuccess();
        } else {
            throw new \Exception('传递参数错误', -1);
        }
    }
}